<template>
  <div class="fyhh">
    <van-nav-bar title="砍价列表" left-arrow @click-left="$router.go(-1)" />
    <div class="kan" v-for="(item,index) in kanjiaList" :key="index">
      <img :src="item.pic" alt />
      <div class="room">
        <div class="toom">
          <p v-html="item.name"></p>
          <p>{{item.characteristic}}</p>
        </div>
        <ul>
          <li>
            <p class="pp">￥{{ item.minPrice }}</p>
            <p>底价</p>
          </li>
          <li>
            <p>{{ item.originalPrice }}</p>
            <p>原价</p>
          </li>
          <li>
            <p>{{ item.stores }}</p>
            <p>限量</p>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        kanjiaList:[]
    };
  },
  created() {},
  mounted() {
    this.kanjia();
  },
  methods: {
    // 砍价
    kanjia() {
      this.$axios
        .post("https://api.it120.cc/small4/shop/goods/kanjia/list")
        .then((res) => {
          this.kanjiaList = res.data.goodsMap;
          console.log(res);
        });
    },
  },
};
</script>

<style scoped lang="less">
.quan {
  width: 100%;
  line-height: 0.95rem;
  font-size: 0.36rem;
  text-align: center;
}
.quanshang {
  width: 100%;
  height: 0.2rem;
  background-color: #f4f4f4;
  margin-top: 0.1rem;
}
.kan {
  width: 100%;
  height: 2.7rem;
  border-top: 0.02rem solid #cccccc;
  display: flex;

  img {
    width: 2.24rem;
    height: 2.28rem;
    margin: 0.14rem 0.22rem 0.14rem 0.14rem;
  }
  .room {
    .toom {
      width: 4rem;
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 0.64rem;
      :nth-child(1) {
        font-size: 0.24rem;
        // color: red;
      }
      :nth-child(2) {
        font-size: 0.18rem;
        color: #cccccc;
      }
      p {
        margin-top: 0.22rem;
      }
    }
    ul {
      width: 3.51rem;
      display: flex;
      justify-content: space-between;
      li {
        p {
          margin-bottom: 0.2rem;
          font-size: 0.28rem;
        }
        .pp {
          color: red;
        }
      }
    }
  }
}
</style>
